package com.itheima.day1static;

/**
 * static注意事项
 */
public class staticAttention {
    public static int number = 10;
    String name;

    public static void main(String[] args) {
        //1.静态方法只能访问静态成员
    }
    public static void test(){
        System.out.println(staticAttention.number);
        staticAttention.test2();
        System.out.println();
    }
    public static void test2(){
        System.out.println("test2");
    }
    public void go(){

    }
    public  void test1(){
        System.out.println(number);
        System.out.println(name);
        System.out.println("实例方法test1");
        test2();
        test();
        go();
    }
}
